package org.fhm.zdte.common.pool;

import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * An abstraction layer for a custom thread pool.
 *
 * @author 谭波
 * @since 2024/4/1
 */
abstract class AbstractThreadPoolExecutor extends ThreadPoolExecutor {

    public AbstractThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, BlockingQueue<Runnable> workQueue, String prefixName) {
        super(corePoolSize, maximumPoolSize, keepAliveTime, TimeUnit.SECONDS, workQueue, new CustomThreadFactory(prefixName));
    }
}
